<template>
  <iview-uieditor :options="options" :json="json" :theme="theme" />
</template>
<script>
export default {
  data() {
    return {
      options: {
        templates: [
          {
            title: "JSON Object",
            group: "测试模板库/测试模板",
            json: {
              type: "Input",
            },
          },
          {
            title: "Tmpl",
            group: "测试模板库/测试模板",
            template: `<Input />`,
          },
        ],
      },
      theme: {},
      json: {
        type: "Card",
        props: {
          class: "mb-sm",
          "title": "Card 卡片",
        },
        children: [
          {
            type: "uieditor-text",
            props: {
              text: "文本内容",
            },
          },
        ],
      },
    };
  },
};
</script>